//
//  PrivacyViewController.m
//  LoveHealth
//
//  Created by 陈永坤 on 14-10-3.
//  Copyright (c) 2014年 lanou. All rights reserved.
//

#import "PrivacyViewController.h"

@interface PrivacyViewController ()

@end

@implementation PrivacyViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
   
    
    
    self.view.backgroundColor = [UIColor whiteColor];
    UILabel * titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(100, 60, 120, 30)];
    [self.view addSubview:titleLabel];
    titleLabel.text = @"隐私声明";
    titleLabel.tintColor = [UIColor blackColor];
    titleLabel.font = [UIFont systemFontOfSize:25];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [titleLabel sizeToFit];
    [titleLabel release];
    
//    UILabel *  privacyLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 100, 280, 200)];
//    [self.view addSubview:privacyLabel];
//    privacyLabel.text = @"       爱健康非常重视对用户隐私权的保护，用户的邮件及手机号等个人资料为用户重要隐私，本软件件承诺不会将个人资料用作它途；承诺不会在未获得用户许可的情况下擅自将用户的个人资料信息出租或出售给任何第三方，在如下情况下，本站将不对您的隐私泄露承担责任： 	您同意让第三方共享资料；您同意公开你的个人资料，享受为您提供的产品和服务；本站需要听从法庭传票、法律命令或遵循法律程序；因黑客行为或用户的保管疏忽导致帐号、密码遭他人非法使用 时尚传媒会不定期更新本隐私权声明。";
//    privacyLabel.numberOfLines = 0;
//    [privacyLabel release];
    
    UITextView * privacyView = [[UITextView alloc]initWithFrame:CGRectMake(20, 100, 280, 320)];
    [self.view addSubview:privacyView];
    privacyView.font = [UIFont systemFontOfSize:16];
    privacyView.text = @"       爱健康非常重视对用户隐私权的保护，用户的邮件及手机号等个人资料为用户重要隐私，本软件件承诺不会将个人资料用作它途；承诺不会在未获得用户许可的情况下擅自将用户的个人资料信息出租或出售给任何第三方，在如下情况下，本软件将不对您的隐私泄露承担责任: \n       A、您同意让第三方共享资料；\n       B、您同意公开你的个人资料，享受为您提供的产品和服务；\n       C、本软件发现用户违反了本软件服务条款或本软件其它使用规定。\n本软件之保护隐私声明的修改及更新权均属于爱健康";
    privacyView.editable = NO;

    
    UIButton *  backButton = [UIButton buttonWithType:UIButtonTypeSystem];
    backButton.frame = CGRectMake(100, 440, 120, 30);
    [backButton setTitle:@"返回" forState:UIControlStateNormal];
    [self.view addSubview:backButton];
    [backButton addTarget:self action:@selector(didClickButtonAction:) forControlEvents:UIControlEventTouchUpInside];
}

- (void)didClickButtonAction:(UIButton *)button
{
    
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
